
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

   <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
      #kindPT tbody tr:nth-child(odd){background:#f7f3f7 }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
   <form action="" class="form-inline" method="get" id="f1">
      <table class="table-bordered table">
        <tr>
          <td>
              <span class="lr_5"></span>
              财年：
              <select name="cid" id="cid" class="select form-control">
                 {volist name="cainian" id="c"}
                  <option value="{$c.id}" {if $cid==$c.id} selected {/if}>{$c.title}</option>
                 {/volist}
          </select><span class="lr_5"></span><button class="btn-info btn" type="submit" >查询</button>
        <span class="lr_5"></span><a href="javascript:;" onclick="dc({$cid})" class="btn btn-info">导出Excel</a>
          </td>
        </tr>
        <tr>
          <td>
              <p class="font-bold text-center">各省份年总费用投入情况</p>
              <p class="padding-10 text-right">单位(万元)</p>
          </td>
        </tr>
      </table>
	 <div>	 
      <table class="tab-content table-bordered text-right table-hover table bud_hei" border="1" style="margin-bottom:1px" id="kindPT">
      	 <tr class="info">
			     <th class="text-center">省份</th>
			     <th class="text-center">项目</th>
			     {volist name="kaohe2" id="kap"} <th class="text-center">{$kap.title}</th>{/volist}
           <th class="text-center">小计</th>
           <th class="text-center">平均</th>
           <th class="text-center">占比</th>
			     <th class="text-center"></th>
      	 </tr>
         <tbody style="border:0">
         {volist name="sarr" id="s"}
          <tr class="text-right">
            <td rowspan="2" class="text-center"><a href="{:url('shengdet')}?sid={$s.id}&cid={$cid}">{$s.title}</a></td>
            <td class="text-center">费用预算</td>
            {volist name="$s.yjfy" id="y"}
              <td class="ObjectNum">{$y}</td>
            {/volist}
            <td class="ObjectNum sum">{$s.zyjfy}</td>
            <td class="ObjectNum average">{$s.ayjfy}</td>
            <td><span class="ObjectNum">{$s.byjfy}</span>%</td>
            <td class="text-center" rowspan="2"><a href="javascript:;">点线图</a></td>
         </tr>
         <tr>
            <td class="text-center">实际投入</td>
            {volist name="$s.fysq" id="y"}
              <td class="ObjectNum">{$y}</td>
            {/volist}
            <td class="ObjectNum sum">{$s.zfysq}</td>
            <td class="ObjectNum average">{$s.afysq}</td>
            <td><span class="ObjectNum">{$s.bfysq}</span>%</td>
         </tr>
         {/volist}
         
         
         </tbody>
         <tfoot>
            <tr class="trTotal text-right" id="totalRow">
              <td colspan="14">费用预算总计：</td>
              <td>{$zong}</td>
              <td>{$avg}</td>
              <td></td>
              <td></td>
            </tr>
         </tfoot>
      </table>
     </div>
</form>
   
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
     function dc(cid){
        window.open("{:url('shengalltrdc')}?cid="+cid)
     }
    </script>
</body>

</html>
